import { Server as SocketIOServer, Socket } from 'socket.io'

//最基本的socket
import defaultSocket from '../socket/defaultSocket.ts'

function useSocket(io: SocketIOServer) {
  io.on('connection', (socket: Socket) => {
    defaultSocket(io, socket)
  })
}

export default useSocket
